package org.cybzacg.convert.model;

import org.cybzacg.convert.core.TypeConverter;
import org.cybzacg.convert.enums.RegistrationStatus;
import org.jetbrains.annotations.NotNull;

/**
 * 注册结果
 */
public record RegistrationResult(Class<?> converterClass, RegistrationStatus status, String message,
                                 TypeConverter converter) {


    @NotNull
    @Override
    public String toString() {
        return String.format("RegistrationResult{class=%s, status=%s, message='%s'}",
                converterClass.getSimpleName(), status, message);
    }
}
